import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //分页获取盘点单据列表数据
  GetMatchPageTakeStockBillList(data?: any) {
    return request({
      url: '/api/TakeStock/GetMatchPageTakeStockBillList',
      method: 'post',
      data,
    });
  },
  //确认完成盘点单
  SureFinishTakeStockBill(data?: any) {
    return request({
      url: '/api/TakeStock/SureFinishTakeStockBill',
      method: 'post',
      data,
    });
  },
  //删除盘点单据（未确认前可用删除）
  DeleteTakeStockBill(data?: any) {
    return request({
      url: '/api/TakeStock/DeleteTakeStockBill',
      method: 'post',
      data,
    });
  },
  //判断目标仓库是否存在待确认的盘点单
  JuadgeIsHaveTakeStockBill(data?: any) {
    return request({
      url: '/api/TakeStock/JuadgeIsHaveTakeStockBill',
      method: 'post',
      data,
    });
  },

  //获取盘点单据详情
  GetTakeStockBillDetail(data?: any) {
    return request({
      url: '/api/TakeStock/GetTakeStockBillDetail',
      method: 'post',
      data,
    });
  },
  //创建盘点单据
  CreateTakeStockBill(data?: any) {
    return request({
      url: '/api/TakeStock/CreateTakeStockBill',
      method: 'post',
      data,
    });
  },
  //修改盘点单据
  UpdateTakeStockBill(data?: any) {
    return request({
      url: '/api/TakeStock/UpdateTakeStockBill',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
